package com.liang.lingdong.model.auth.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;

/**
 * 用户发送邮件
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UserSendEmailDto {

    /**
     * 邮箱
     */
    @NotBlank
    @Length(max = 30, message = "邮箱长度不能超过30个字符")
    private String email;

    /**
     * 验证码
     */
    @NotBlank
    @Length(max = 6, min = 6, message = "验证码长度不符合要求")
    private String authCode;

    /**
     * 验证码id
     */
    @NotBlank
    private String uid;
}
